package com.zgis.module.db.service.impl;

import com.zgis.module.bas.bean.CxFld;
import com.zgis.module.db.interfaces.ICxFld;
import com.zgis.module.db.service.RedisCacheService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Redis版本的Fld管理实现
 */
@Slf4j
@Service("redisCxFldImpl")
public class RedisCxFldImpl implements ICxFld
{

    @Resource
    private RedisCacheService redisCacheService;

    @Override
    public List<CxFld> queryFldList(String tabName) {
        return redisCacheService.getFldListByTableName(tabName);
    }
}
